﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JHT.SimpleTaskSystem
{
    public class SimpleTask : Entity<long>
    {
        public virtual Person AssignedPerson
        {
            get;
            set;
        }

        public virtual int? AssignedPersonId
        {
            get;
            set;
        }

        public virtual string Description { get; set; }

        public virtual DateTime CreationTime { get; set; }
        public virtual TaskStateEnum State { get; set; }

        public SimpleTask()
        {
            CreationTime = DateTime.Now;
            State = TaskStateEnum.Active;
        }
    }

    public enum TaskStateEnum : int
    {
        /// <summary>
        /// 激活
        /// </summary>
        Active = 1
    }
}
